import Vue from 'vue'
import App from './App'

import _ from 'lodash'

Vue.prototype._ = _
global._ = _ // 打包后无效

import * as util from './common/util'

Vue.prototype.util = util

import store from './store'
import { modelGet, modelSet, modelSetWithServer } from './store/modelOpt.js'

Vue.prototype.modelSet = modelSet
Vue.prototype.modelGet = modelGet
Vue.prototype.modelSetWithServer = modelSetWithServer

Vue.config.productionTip = false

App.mpType = 'app'

import uView from './uview-ui'

Vue.use(uView)

const app = new Vue({
  store,
  ...App,
})
app.$mount()
